package _2025_4_14;

import java.io.File;
import java.io.IOException;

public class Pathdemo5 {
    public static void main(String[] args) throws IOException {
        File file=new File("d:/temp/java");
        System.out.println(file.mkdir());//创建单个目录
        File file1=new File("d:/temp/java/abc");
        System.out.println(file.mkdirs());//创建多个目录

        File file2=new File("d:/temp/java/abc/hello.txt");
        System.out.println(file2.mkdirs());
        System.out.println(file2.canRead());
        System.out.println(file2.canWrite());
    }
}
